package com.college.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class RedirectController {

	@RequestMapping("home")
	public ModelAndView home(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("home");

	}
	@RequestMapping("admissions")
	public ModelAndView admissions(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("admissions");

	}
	@RequestMapping("programmes")
	public ModelAndView programmes(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("programmes");

	}
	@RequestMapping("faculty")
	public ModelAndView faculty(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("faculty");

	}
	@RequestMapping("facilities")
	public ModelAndView facilities(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("facilities");

	}
	@RequestMapping("results")
	public ModelAndView results(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("results");

	}
	@RequestMapping("news")
	public ModelAndView news(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("news");

	}
	@RequestMapping("events")
	public ModelAndView events(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("events");

	}
	@RequestMapping("gallery")
	public ModelAndView gallery(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("gallery");

	}
	@RequestMapping("alumni")
	public ModelAndView alumni(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("alumni");

	}
	@RequestMapping("placements")
	public ModelAndView placements(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("placements");

	}
	@RequestMapping("contact")
	public ModelAndView contact(HttpServletRequest request,
			HttpServletResponse response) throws Exception { 

		return new ModelAndView("contact");

	}
	
}
